package com.kaoshi.agency.controller;

import com.kaoshi.agency.service.JiatingService;
import com.kaoshi.common.config.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/agency/jiating")
public class JiatingController {
    @Autowired
    private JiatingService jiatingService;
    @RequestMapping("/findAll")
    public Result findAll(){
        return Result.ok(jiatingService.list());
    }
}
